package com.huosu.commons.enums;

import lombok.Getter;

/**
 * API 状态码
 *
 * @author lyc
 */
@Getter
public enum CheckPoolSubErrorCode {

    SUCCESS(200, "成功"),

    FAIL(-200, "失败"),

    POOL_ERROR(201, "挖矿地址解析错误"),

    POOL_RETURN_ERROR(203, "挖矿地址响应异常"),

    LOGIN_FAIL(202, "用户名错误");

    private Integer code;
    private String msg;

    CheckPoolSubErrorCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
